import request from '../index';

let api_name="/addons/yun_shop/api.php?i=1&scope=pass&route=";

export function getSort(params) {
  return request({
    url: `${api_name}plugin.activity-set.admin.pk-list.sort`,
    method: 'get',
    params
  })
}

export function getInfo(params) {
  return request({
    url: `${api_name}plugin.activity-set.admin.pk-list.getInfo`,
    method: 'get',
    params
  })
}

// 获取活动资讯列表
export function getNewsList(params) {
  return request({
    url: `${api_name}plugin.activity-set.admin.activity-news.getList`,
    method: 'get',
    params
  })
}

// 获取我的排名信息
export function getMyRankInfo(params) {
  return request({
    url: `${api_name}plugin.activity-set.admin.pk-list.getMyRank`,
    method: 'get',
    params
  })
}

// H5获取资讯列表
export function getH5NewsList(params) {
  return request({
    url: `${api_name}plugin.activity-set.admin.activity-news.h5-list`,
    method: 'get',
    params
  })
}

// H5获取资讯详情
export function getH5NewsDetail(params) {
  return request({
    url: `${api_name}plugin.activity-set.admin.activity-news.h5-detail`,
    method: 'get',
    params
  })
}